<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "sample_to_deliver".
 *
 * @property integer $pk_id
 * @property integer $pt_id
 * @property integer $from_type
 * @property integer $tube_deliver
 * @property string $deliver_comp
 * @property string $deliver_using
 * @property string $deliver_time
 * @property string $crt_name
 * @property string $crt_time
 */
class SampleDeliver extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'sample_deliver';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['pt_id', 'from_type', 'tube_deliver', 'deliver_comp', 'deliver_time', 'crt_name', 'crt_time'], 'required'],
            [['pt_id', 'from_type', 'tube_deliver'], 'integer'],
            [['deliver_time', 'crt_time'], 'safe'],
            [['deliver_comp', 'deliver_using'], 'string', 'max' => 255],
            [['crt_name'], 'string', 'max' => 10]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'pk_id' => 'Pk ID',
            'from_type' => '来源',
            'tube_deliver' => '送检管数',
            'deliver_comp' => '送检公司',
            'deliver_using' => '送检项目',
            'deliver_time' => '送检时间',
            'crt_name' => '创建人',
            'crt_time' => '创建时间',
        ];
    }
}
